package com.eastshop.category.vo;

import java.io.Serializable;
import java.util.Set;

import org.apache.commons.lang3.builder.ToStringBuilder;



/** @author Hibernate CodeGenerator */
public class Category implements Serializable {

    /** identifier field */
    private Integer cid;

    /** nullable persistent field */
    private String cname;

    /** persistent field */
    private Set products;

    /** full constructor */
    public Category(String cname, Set products) {
        this.cname = cname;
        this.products = products;
    }

    /** default constructor */
    public Category() {
    }

    /** minimal constructor */
    public Category(Set products) {
        this.products = products;
    }

    public Integer getCid() {
        return this.cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public String getCname() {
        return this.cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public Set getProducts() {
        return this.products;
    }

    public void setProducts(Set products) {
        this.products = products;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("cid", getCid())
            .toString();
    }

}
